<?php
return array(
	'formView' => array(
		'fields' => array(
			'id' => false,
			'access' => false,
			'auser' => array('textField',array('class'=>'is-show')),
			'aname' => array('textField',array('class'=>'is-show')),
			'fatid' => array('dropDownList', Yii::app()->enum->options('finance.financeAccountType', false),array('id'=>'fatid')),
			'worker_id' => false,
			'balance' => array('textField',array('class'=>'price-input')),
			'remark' => array('textArea',array('rows'=>'3', 'cols'=>'50'))
		)
	),
	
	'scripts' => array(
		array(null, "
		$('#fatid').change(function() {
			isShow(this.value);
		});
		isShow($('#fatid').find(':checked').val());
		function isShow(value) {
			if(!value || value == 1) {
				$('.is-show').val('').parent().parent().hide();
			} else {
				$('.is-show').parent().parent().show();
			}
		}
		")
	),
	
	'_import' => array(
		array('*', 'actions.edit//*'),
	),
);